package com.qh.resourcehub.info.wifiresource.service.impl;

import com.qh.resourcehub.info.entity.ApplicationData;
import com.qh.resourcehub.info.wifiresource.dao.WifiSupervisorReviewDao;
import com.qh.resourcehub.info.wifiresource.service.WifiSupervisorReviewSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WifiSupervisorReviewSerivceImpl implements WifiSupervisorReviewSerivce {
    @Autowired
    private WifiSupervisorReviewDao wifiSupervisorReviewDao;
    @Override
    public List<Map<String, Object>> queryIpReviewData(ApplicationData applicationData) {
        return wifiSupervisorReviewDao.queryIpReviewData(applicationData);
    }

    @Override
    public int WifiReviewPass(ApplicationData applicationData) {
        //TODO: 还需要增加主任审核信息表，来存放他驳回和通过的信息
        applicationData.setDataType("02");
        return wifiSupervisorReviewDao.IpReviewPass(applicationData);
    }

    @Override
    public int WifiReviewOverrule(ApplicationData applicationData) {
        //TODO: 还需要增加主任审核信息表，来存放他驳回和通过的信息
        applicationData.setDataType("04");
        return wifiSupervisorReviewDao.IpReviewOverrule(applicationData);
    }
}
